﻿using 依赖注入案例练习;

namespace Microsoft.Extensions.DependencyInjection;

public static class MailServiceExtensions
{
    public static void AddMailService(this IServiceCollection serviceCollection)
    {
        serviceCollection.AddScoped<IMailService, MailService>();
    }
}